import Cookies from 'js-cookie'

const TokenKey = 'Access-Token'

const SystemKey ="systemKey";

const SystemId="System-Id"

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function setSystem(systemKey){
    return Cookies.set(SystemKey, systemKey)
}

export function setSystemId(systemId){
    return Cookies.set(SystemId, systemId)
}

export function getSystem(){
    return Cookies.get(SystemKey)
}

export function getSystemId(systemId){
    return Cookies.get(SystemId)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
